package com.example.baselibrary.db.table;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 所有群组的成员表
 *
 * @author: NPF
 * @date: 2018/4/10.
 */
@DatabaseTable(tableName = "groupMember")
public class GroupMemberTable {
    @DatabaseField(columnName = "id", generatedId = true)
    private int id;
    @DatabaseField(columnName = "groupId")
    public String groupId;
    @DatabaseField(columnName = "account")
    public String account;
    @DatabaseField(columnName = "nick")
    public String nick;
    @DatabaseField(columnName = "avatar")
    public String avatar;

    public GroupMemberTable() {
    }

    public GroupMemberTable(String groupId, String account, String nick, String avatar) {
        this.groupId = groupId;
        this.account = account;
        this.nick = nick;
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return "GroupMemberTable{" +
                "id=" + id +
                ", groupId='" + groupId + '\'' +
                ", account='" + account + '\'' +
                ", nick='" + nick + '\'' +
                ", avatar='" + avatar + '\'' +
                '}';
    }
}
